package com.ujiuye.app;

import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Demo3 {
    public static void main(String[] args) throws Exception {
        XSSFWorkbook workbook = new XSSFWorkbook();
        XSSFSheet sheet = workbook.createSheet("第一张表");
        XSSFRow row = sheet.createRow(0);
        row.createCell(0).setCellValue("ds");
        row.createCell(1).setCellValue("ds");
        row.createCell(2).setCellValue("ds");
        row.createCell(3).setCellValue("ds");
        workbook.write(new FileOutputStream(new File("")));
    }
}
